package com.embhealth.dao;

import com.embhealth.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 预约设置持久层接口
 */
public interface OrderSettingDao {
    
    //根据预约日期查询数量
    long findCountByOrderDate(Date orderDate);

    //根据预约日期更新预约数量
    void updateNumByOrderDate(OrderSetting orderSetting);

    //新增预约设置
    void insert(OrderSetting orderSetting);

    //根据月份查询对应的预约设置数据
    List<Map> getOrderSettingByMonth(String date);
    
    //根据预约日期查询预约设置
    OrderSetting findByOrderDate(Date orderDate);

    //根据预约日期更新已预约人数
    void updateReservationsByOrderDate(OrderSetting orderSetting);
}
